﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Small.Html.Options
{
   public class JqFormOptions:JqBase
    {
       List<String> list = new List<string>();
            
           

            
          
        private string elmprefix;

        public string Elmprefix
        {
            get { return elmprefix; }
            set { elmprefix = value;
            list.Add(IsStringNull("elmprefix", elmprefix));
            }
        }

        private string elmsuffix;

        public string Elmsuffix
        {
            get { return elmsuffix; }
            set { elmsuffix = value;
             list.Add(IsStringNull("elmsuffix", elmsuffix)); ;
            }
        }

        private string label;

        public string Label
        {
            get { return label; }
            set { label = value;
            list.Add(IsStringNull("label", label));
            }
        }
        private decimal rowpos;

        public decimal Rowpos
        {
            get { return rowpos; }
            set { rowpos = value;
            list.Add(IsDecimal("rowpos", rowpos));
            }
        }
        private decimal colpos;

        public decimal Colpos
        {
            get { return colpos; }
            set { colpos = value;
              list.Add(IsDecimal("colpos", colpos));
            }
        }

        public override string GenerateString()
        {
            
            return " formoptions: {" + string.Join(",", list.ToArray()) + OthertAtributes + " } ";
        }
    }
}
